class A
    def f
        return 1
    end
end

class B
    def f
        return 1.0
    end
end

def poly(a)
    b = a.f()
    return b
end

a = A.new
b = B.new

x = 1
x = poly(b)

y = 1.0
y = poly(a)
